import request from '@/utils/request'

/* 获取告警列表的action */
export const fetchWarningListAPI = (pageParams) => {
  return request({
    url: '/pole/warning/list',
    method: 'GET',
    params: pageParams
  })
}

/* 删除告警记录的接口 */

export const deleteWarningListAPI = (id) => {
  return request({
    url: `/pole/warning/${id}`,
    method: 'DELETE'
  })
}
